@import url("iconfonts.css");
/* variables */
/* reset style */
html {
  height: 100%;
  width: 100%;
  font-size: 16px;
}
body {
  position: relative;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  color: rgba(0, 0, 0, 0.87);
  background-color: #f5f5f5;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body,
article,
aside,
footer,
header,
nav,
section,
h1,
h2,
h3,
h4,
h5,
h6,
select,
input,
textarea,
button,
ul,
ol,
dl,
dt,
dd,
li,
table,
legend,
thead,
tbody,
tfoot,
tr,
td,
th,
div,
p,
span,
a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: helvetica, "Microsoft YaHei", sans-serif;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  font-size: .875rem;
}
ul,
ol,
li {
  list-style: none;
}
a {
  text-decoration: none;
  -webkit-touch-callout: none;
  color: rgba(0, 0, 0, 0.87);
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
/* global style 全局可用样式*/
.border {
  border: 1px solid #e3e3e3;
}
.valign {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* components style 组件样式*/
.table {
  width: 100%;
}
.table td,
.table th {
  height: 2.75rem;
  padding: 0 .5rem;
  border-bottom: 1px solid #e3e3e3;
  text-align: center;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
/* loading:加载动画 */
.loading {
  position: absolute;
  top: 5rem;
  left: 50%;
  margin-left: -1.25rem;
  height: 2.5rem;
  width: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.26);
}
.loading:before {
  position: absolute;
  top: 0;
  left: 0;
  height: 2.5rem;
  width: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  content: "\e984";
  font-size: 1.25rem;
  color: #007aff;
  font-family: 'icomoon';
  animation: rotate 1s infinite;
  transform-origin: center;
}
@keyframes rotate {
  0% {
    opacity: 1;
    transform: rotate(0deg);
  }
  50% {
    opacity: .54;
  }
  100% {
    opacity: 1;
    transform: rotate(360deg);
  }
}
/* page style 页面框架*/
article {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
}
article > header {
  position: relative;
  min-height: 2.75rem;
  width: 100%;
  padding: 0 3.5rem;
  background-color: #fff;
}
article > header h1 {
  height: 2.75rem;
  line-height: 2.75rem;
  font-size: 1.125rem;
  text-align: center;
}
article > header .icon-button {
  position: absolute;
  top: 0;
  min-width: 2.5rem;
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0 1rem;
}
article > header .icon-button.left {
  left: 0;
}
article > header .icon-button.right {
  right: 0;
}
article > header .icon-button .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 1.5rem;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: 1.125rem;
}
article > header .icon-button.auto-width {
  padding-left: 2rem;
  padding-right: 1rem;
  font-size: 1.125rem;
}
article > header .icon-button.auto-width .icon {
  left: .5rem;
  transform: translateY(-50%);
}
article > section {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* secretary page 秘书页面*/
.group {
  background-color: #fff;
  padding: 1rem 1.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
}
.group h2 {
  position: relative;
  height: 2rem;
  line-height: 2rem;
  padding-left: 1rem;
  color: #007aff;
  font-size: 1.375rem;
  font-weight: bold;
}
.group h2:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  transform: translateY(-50%);
  box-sizing: border-box;
  border-left: 3px solid #007aff;
  height: 60%;
}
.group .table td,
.group .table th {
  width: 23%;
}
.group .table td:first-child,
.group .table th:first-child {
  text-align: left;
  padding-left: 1rem;
  width: 31%;
}
.group .table td:nth-child(3),
.group .table td:nth-child(4),
.group .table th:nth-child(3),
.group .table th:nth-child(4) {
  color: #828282;
}
.group .table td.null:before {
  content: "\e900";
  font-family: "icomoon";
  color: #007aff;
  font-size: 1.375rem;
  vertical-align: middle;
}
/* time-edit page 投入时间编辑页面 */
.time-edit-main {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  background-color: #fff;
}
.hour-editor-container {
  flex: 1;
  border-bottom: 1px solid #e8e8e8;
  padding-top: 2rem;
}
.hour-editor-container .tip {
  text-align: center;
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 1rem;
}
.hour-editor-container .hour-editor {
  position: relative;
  margin: 0 auto 2rem auto;
  width: 7.5rem;
}
.hour-editor-container .hour-editor input[type="number"] {
  height: 2.75rem;
  line-height: 2.75rem;
  width: 100%;
  font-size: 2.75rem;
  border: none;
  text-align: center;
}
.hour-editor-container .hour-editor input[type="number"]::placeholder {
  color: #ccc;
  font-size: 1.75rem;
}
.hour-editor-container .hour-editor:after {
  content: 'hour';
  position: absolute;
  bottom: 0;
  left: 100%;
  line-height: 1rem;
  font-size: 1rem;
  color: #808080;
}
.hour-editor-container .hour-list ul {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.hour-editor-container .hour-list ul li {
  height: 3rem;
  width: 3rem;
  line-height: 3rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1rem;
  transition: all .2s;
  border: 1px solid transparent;
}
.hour-editor-container .hour-list ul li:active,
.hour-editor-container .hour-list ul li.active {
  border: 1px solid #007aff;
  color: #007aff;
}
.remark-edit-container {
  padding: 1rem 0;
  text-align: center;
}
.remark-edit-container textarea {
  width: 100%;
  height: 5rem;
  margin-bottom: 2.5rem;
  overflow-y: auto;
  border: none;
}
.remark-edit-container textarea::placeholder {
  color: #b3b3b3;
}
.remark-edit-container .btn-save {
  margin-bottom: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  width: 11rem;
  background-color: #007aff;
  color: rgba(255, 255, 255, 0.87);
  border: none;
  border-radius: 1.5rem;
  transition: all .2s;
}
.remark-edit-container .btn-save:active {
  opacity: .9;
}
/* project-detail page 专案投入时间详情页 */
.impo-data {
  margin-bottom: 1rem;
  background-color: #fff;
}
.impo-data h2 {
  margin-bottom: .75rem;
  font-size: 1rem;
  text-align: center;
}
.impo-data .hour {
  position: relative;
  display: block;
  min-width: 3rem;
  padding: 0 1rem;
  height: 1.75rem;
  line-height: 1.75rem;
  font-size: 1.75rem;
  text-align: center;
}
.impo-data .hour:after {
  content: 'hour';
  position: absolute;
  bottom: 0;
  left: 100%;
  line-height: 1rem;
  font-size: 1rem;
  color: #bdbdbd;
}
.impo-data .today {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}
.impo-data .today .hour-container {
  position: relative;
  margin: 0 auto;
}
.impo-data .today .hour-container .hour {
  height: 3rem;
  line-height: 3rem;
  font-size: 3rem;
  color: #007aff;
}
.impo-data .today .hour-container .btn-edit {
  position: absolute;
  top: 0;
  left: 100%;
  border: none;
  background-color: transparent;
  color: #007aff;
  white-space: nowrap;
  /*利用伪类扩大可点击范围*/
}
.impo-data .today .hour-container .btn-edit:before {
  content: '';
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  left: -0.5rem;
}
.impo-data .container {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem 1.75rem 2rem;
}
.impo-data .container > * {
  padding-right: 2rem;
}
.impo-data .yesterday {
  /* 昨日未投入 */
}
.impo-data .yesterday .hour {
  display: none;
}
.impo-data .yesterday .null {
  position: relative;
  display: block;
  padding-bottom: 1.125rem;
  color: #007aff;
}
.impo-data .yesterday .null:before {
  content: "\e900";
  font-family: 'icomoon';
  font-size: 1.75rem;
}
.impo-data .yesterday .null:after {
  content: '去投入';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1rem;
  white-space: nowrap;
}
.record {
  background-color: #fff;
  padding: 1rem;
}
.record > li {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  /* 今天不显示小时数 */
}
.record > li:last-child {
  border-bottom: none;
}
.record > li:first-child .hour {
  display: none;
}
.record > li > * {
  line-height: 1rem;
}
.record > li .date {
  white-space: nowrap;
  margin-right: 1.5rem;
}
.record > li .hour {
  white-space: nowrap;
  width: 1.75rem;
  margin-right: 1rem;
}
.record > li .remark {
  color: #6e6e6e;
  word-break: break-all;
}
/* project-list page 专案列表 */
.project-list-main > .tip {
  height: 2.5;
  line-height: 2.5;
  background-color: #007aff;
  color: rgba(255, 255, 255, 0.87);
  text-align: center;
}
.project {
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  margin-bottom: 1.25rem;
  background-color: #fff;
}
.project:after {
  position: absolute;
  top: 1rem;
  right: .75rem;
  content: "\e409";
  font-family: 'icomoon';
  font-size: 1.25rem;
  height: 1.5rem;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.53);
}
.project h2 {
  font-size: .9375rem;
}
.project .data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project .data .total {
  margin-left: 1.25rem;
  font-size: 1.125rem;
}
.project .data .total:before {
  margin-right: .5rem;
  content: '总计';
  color: #8f8f8f;
  font-size: .875rem;
}
.project .data .today {
  width: 4.5rem;
  font-size: 1.25rem;
  color: #007aff;
}
.project .data .today:before {
  margin-right: .5rem;
  content: '今日';
  font-size: .875rem;
}
.project .data .today.null:before {
  margin-right: 0;
  content: '今日未投入';
  color: #8f8f8f;
}
/* admin page 管理者主页 */
.to-pro-list {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #007aff;
}
.tabs {
  min-height: 3rem;
  padding-top: .5rem;
  text-align: center;
  background-color: #fff;
  font-size: 0;
}
.tabs a {
  display: inline-block;
  width: 8.25rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: .875rem;
  border-radius: 4px;
  color: #007aff;
  border: 1px solid #007aff;
  transition: all .2s;
}
.tabs a:last-child {
  margin-left: 2px;
}
.tabs a:active,
.tabs a.active {
  background-color: #007aff;
  color: rgba(255, 255, 255, 0.87);
}
.project-container,
.person-container {
  background-color: #fff;
  padding-bottom: 1rem;
}
.person-container {
  display: none;
}
.collapse {
  padding: 0 1rem;
}
.collapse .collapse-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 1rem 1.5rem;
}
.collapse .collapse-title:before {
  position: absolute;
  top: 1rem;
  left: 0;
  height: 1rem;
  width: 1rem;
  line-height: 1rem;
  text-align: center;
  content: "\f0da";
  font-family: 'icomoon';
  font-size: 1rem;
  transition: all .2s;
}
.collapse .collapse-title > * {
  line-height: 1rem;
}
.collapse .collapse-title > *:last-child {
  margin-left: 1.5rem;
  color: #8c8c8c;
  white-space: nowrap;
}
.collapse .collapse-content {
  display: none;
  padding-left: 1.5rem;
}
.collapse .collapse-content > li {
  padding: .75rem 0;
  display: flex;
  justify-content: space-between;
}
.collapse .collapse-content > li > *:last-child {
  white-space: nowrap;
  margin-left: 1.5rem;
}
.collapse.on .collapse-title:before {
  transform: rotate(90deg);
}
.collapse.on .collapse-content {
  display: block;
}
